﻿using System.Configuration;
using SimpleServiceBus.Bus.Pipeline;

namespace SimpleServiceBus.Configuration
{
    public class PipelineProfilerConfigurationElement : ConfigurationElement
    {
        [ConfigurationProperty("enabled", DefaultValue = true, IsRequired = false)]
        public bool Enabled
        {
            get { return (bool)base["enabled"]; }
            set { base["enabled"] = value; }
        }

        [ConfigurationProperty("profilePipelineComponents",DefaultValue=false,IsRequired=false)]
        public bool ProfilePipelineComponents
        {
            get { return (bool) base["profilePipelineComponents"];}
            set { base["profilePipelineComponents"] = value; }
        }
        

        [ConfigurationProperty("pipelineDirection",DefaultValue=PipelineDirection.Receive,IsRequired=false)]
        public PipelineDirection PipelineDirection
        {
            get { return ((PipelineDirection)base["pipelineDirection"]); }
            set { base["pipelineDirection"] = value; }
        }
    }
   
}
